package com.room.search.web.rest.vm;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

/**
 * By   : ghd.bright
 * Time : 2022/1/10
 * Description: 用户手机验证码登录
 */
public class UserMobileLoginVO {

    @NotNull(message = "username")
    @ApiModelProperty("电话号码")
    private String username;

    @ApiModelProperty("验证码")
    @NotNull(message = "code",groups = GroupInterface.class)
    private String code;

    @NotNull(message = "password",groups = GroupInterface.class)
    private String password;

    @ApiModelProperty("七天免登录")
    private boolean rememberMe;


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getUsername() {
        return username;
    }

    public UserMobileLoginVO setUsername(String username) {
        this.username = username;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public UserMobileLoginVO setPassword(String password) {
        this.password = password;
        return this;
    }

    public boolean isRememberMe() {
        return rememberMe;
    }

    public UserMobileLoginVO setRememberMe(boolean rememberMe) {
        this.rememberMe = rememberMe;
        return this;
    }


    @Override
    public String toString() {
        return "UserMobileLoginVO{" +
            "username='" + username + '\'' +
            ", code='" + code + '\'' +
            ", password='" + password + '\'' +
            ", rememberMe=" + rememberMe +
            '}';
    }

    public interface GroupInterface {
    }

}
